﻿#include "element.h"

Element::Element(QString name, float price)
{
    m_name = name;
    m_price = price;
    m_number = 0;
}

QString Element::name() const
{
    return m_name;
}

void Element::setName(const QString &name)
{
    m_name = name;
}

float Element::price() const
{
    return m_price;
}

void Element::setPrice(float price)
{
    m_price = price;
}

int Element::number() const
{
    return m_number;
}

void Element::setNumber(int number)
{
    m_number = number;
}
